
<?php
$this->breadcrumbs=array(
	'Languages Management',
);
?> 

<div>
	<div class="pull-right">
		<div class="widget-toolbar">				
			<a href="<?php echo Yii::app()->createUrl('bookingsystem/language/create'); ?>" role="button" class="white" data-toggle="modal"  title="Add new language">
				<i class="icon-plus"></i>
			</a>
		</div>
	</div>
</div>
<div class="row-fluid">
	<div class="table-header">
		<!-- <div class="pull-left"> -->
		Languages Management
		<!-- </div> -->
		<!-- <div class="pull-right">
			<div class="widget-toolbar">
				<a href="#" data-action="settings">
					<i class="icon-cog"></i>
				</a>

				<a href="#" data-action="reload">
					<i class="icon-refresh"></i>
				</a>

				<a href="#" data-action="collapse">
					<i class="icon-chevron-up"></i>
				</a>

				<a href="#" data-action="close">
					<i class="icon-remove"></i>
				</a>
			</div>
		</div> -->
		
	</div>

	<table id="sample-table-2" class="table table-striped table-bordered table-hover">
		<thead>
			<tr>
				<th class="center">
					<label>
						<input type="checkbox" />
						<span class="lbl"></span>
					</label>
				</th>
				<th>Name</th>
				<th>Language Code</th>
				<th class="hidden-480">Created Date</th>

				<th class="hidden-phone">
					<i class="icon-time bigger-110 hidden-phone"></i>
					Update
				</th>
				<th class="hidden-480">Created By</th>

				<th></th>
			</tr>
		</thead>

		<tbody>
			<?php  foreach($language as $value) : ?>
			<tr>
				<td class="center">
					<label>
						<input type="checkbox" />
						<span class="lbl"></span>
					</label>
				</td>

				<td>
					<a href="#"><?php echo $value->name; ?></a>
				</td>
				<td><?php echo $value->language_code; ?></td>
				
				<td class="hidden-480"><?php //echo date_format(new DateTime($event_cat->created_date),'F jS Y'); ?></td>
				<td class="hidden-phone"></td>

				<td class="hidden-480">
					
				</td>

				<td class="td-actions">
					<div class="hidden-phone visible-desktop action-buttons">

						<a class="green" href="#">
							<i class="icon-pencil bigger-130"></i>
						</a>

						<a class="red" href="#">
							<i class="icon-trash bigger-130"></i>
						</a>
					</div>

					<div class="hidden-desktop visible-phone">
						<div class="inline position-relative">
							<button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown">
								<i class="icon-caret-down icon-only bigger-120"></i>
							</button>

							<ul class="dropdown-menu dropdown-icon-only dropdown-yellow pull-right dropdown-caret dropdown-close">

								<li>
									<a href="#" class="tooltip-success" data-rel="tooltip" title="Edit">
										<span class="green">
											<i class="icon-edit bigger-120"></i>
										</span>
									</a>
								</li>

								<li>
									<a href="#" class="tooltip-error" data-rel="tooltip" title="Delete">
										<span class="red">
											<i class="icon-trash bigger-120"></i>
										</span>
									</a>
								</li>
							</ul>
						</div>
					</div>
				</td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
</div>
<!-- Popup -->
<!-- <div id="modal-form" class="modal hide" tabindex="-1">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal">&times;</button>
		<h4 class="blue bigger">Add new Category</h4>
	</div>

	<div class="modal-body overflow-visible">
		<div class="row-fluid">
			<div class="span12">
				<div class="control-group">
					<label class="control-label" for="form-field-username">Name</label>

					<div class="controls">
						<input type="text" placeholder="Category Name" name="EventCategory[name]" />
					</div>
					<label class="control-label" for="form-field-first">Description</label>

					<div class="controls">
						<input class="input-small" type="text" placeholder="Description" name="EventCategory[description]" />
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="modal-footer">
		<button class="btn btn-small" data-dismiss="modal">
			<i class="icon-remove"></i>
			Cancel
		</button>

		<button class="btn btn-small btn-primary">
			<i class="icon-ok"></i>
			Save
		</button>
	</div>
</div> -->